
fis.match('/static/image/**.png', {
  optimizer: fis.plugin('png-compressor')
});

fis.match('/static/**.js', {
  release: '$0',
  url: '/client-release$0'
});

fis.match('/widget/**.js', {
  release: '$0',
  url: '/client-release$0'
});

fis.match('/static/**.css', {
  release: '$0',
  url: '/client-release$0'
});

fis.match('/widget/**.less', {
  release: '$0',
  url: '/client-release$0'
});

fis.match('*.less', {
  parser: fis.plugin('less'),
  rExt: '.css'
});

fis.match('*.html', {
  release: '$0',
  url: '/client-release$0'
});

fis.match('/static/image/{**.jpg,**.jpeg,**.png,**.svg,**.gif}', {
  release: '$0',
  url: '/client-release$0'
});

// fis3 release development

fis.media('dev').match('*', {
  deploy: fis.plugin('local-deliver', {
    to: '../target/activity/client-release'
  })
});

// fis3 release production

fis.media('prod')
  .match('/**.{js,css}', {
    useHash: false
  })
  .match('/static/js/*.js', {
    // fis-optimizer-uglify-js 插件进行压缩，已内置
    optimizer: fis.plugin('uglify-js')
  })
  .match('/static/css/*.css', {
    // fis-optimizer-clean-css 插件进行压缩，已内置
    optimizer: fis.plugin('clean-css')
  })
  .match('::package', {
    postpackager: fis.plugin('loader', {
      useInlineMap: true,
      allInOne:  {
        ignore: '',
        includeAsyncs: true,
        css: "/static/style.css",
        js: "/static/app.js"
      }
    })
  })
  .match('*', {
    deploy: fis.plugin('local-deliver', {
      to: '../src/main/webapp/client-release'
    })
  });

